//
//  RCMerchantPictureSubView.h
//  RocketProject
//
//  Created by Wu Chengwei on 13-9-29.
//  Copyright (c) 2013年 Rocket. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RCMerchantPicturesDataModel.h"
#import "LVBaseTableView.h"
#import "IManager+ModuleMerchantPictureAlbum.h"
#import "CommonDefines.h"

@protocol RCMerchantPictureSubViewDelegate <NSObject>

@optional
-(void)beginRequestData;
-(void)endRequestData;
-(void)requestFinishedData:(IDataModel *)discountDataModel;
-(void)gotoChildSubViewWithData:(NSArray *)itemsArray withCurrentTag:(NSInteger)tag withHasChild:(BOOL)hasChild withImageView:(UIImageView *)imageView;

@end

@interface RCMerchantPictureSubView : LVBaseTableView<IManagerDelegate>

@property(nonatomic,assign)int64_t requestID;
@property(nonatomic,copy) NSString *merchantID;
@property(nonatomic, copy)   NSString *typeID;
@property(nonatomic,assign)id<RCMerchantPictureSubViewDelegate> delegate;
@property(nonatomic,retain)NSMutableArray *itemListArray;
@property(nonatomic, retain) rcMerchantPictureSubAlbum *pictureDataInfo;
@property(nonatomic, assign) int currentOffset;
@property(nonatomic, assign) int currentReturnNumber;
@property(nonatomic, assign) MerchantPictureType pageType;

- (id)initWithFrame:(CGRect)frame andDelegate:(id<RCMerchantPictureSubViewDelegate>)aDelegate andType:(NSString *)typeID andMerchantID:(NSString *)merchantID  andPageType:(MerchantPictureType)pageType;

-(void) reloadData;

-(void) clearDelegate;

-(void) viewDidUnload;

-(void)requestDataList:(BOOL)isRefreshData;

@end
